import request from '@/utils/request';
import type { LicenceInfo } from './model';

export * from './model.d';
/** licence验证 */
export function licenceVerification() {
	return request<string>({
		url: '/license/licenseVerification',
		method: 'post',
	});
}

/** licence导入 */
export const uploadUrl = `${import.meta.env.VITE_BASE_API}/license/licenseImport`;

/** 获取licence数据 */
export function getLicenceInfo() {
	return request<LicenceInfo>({
		url: '/license/getLicenseInfo',
		method: 'post',
	});
}

/** 获取MAC地址 */
export function getMacAddInfo() {
	return request<string>({
		url: '/license/getMacAddress',
		method: 'get',
	});
}
